

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <title>党员信息列表</title>
    </head>
    <body>
        <div class="nav">
			<span class="menuButton"><g:link class="home" action="list">查看党员信息列表</g:link></span>
            <span class="menuButton"><g:link class="create" action="create">添加新党员信息</g:link></span>
            <span class="menuButton"><g:link action="searchByDept">支部查找</g:link></span>
            <span class="menuButton"><g:link action="searchByEduBG">学历查找</g:link></span>
			<span class="menuButton"><g:link action="searchByBirthday">出生日期查找</g:link></span>
			<span class="menuButton"><g:link action="searchByWorkDate">工作日期查找</g:link></span>
			<span class="menuButton"><g:link action="searchByJoinDate">入党日期查找</g:link></span>
			<span class="menuButton"><g:link controller="admin" action="logout">退出系统</g:link></span>
        </div>
        <div class="body">
            <h1>党员信息列表</h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="list">
                <table>
                    <thead>
                        <tr>
							<g:sortableColumn property="name" title="支部" />
							
                   	        <g:sortableColumn property="name" title="姓名" />
                        
                   	        <g:sortableColumn property="sexType" title="性别" />
                        
                   	        <g:sortableColumn property="nation" title="民族" />
                   	        
							<g:sortableColumn property="brithday" title="出生日期" />
                        
                   	        <g:sortableColumn property="eduBackground" title="学历" />
							
							<g:sortableColumn property="workDate" title="工作时间" />
							
							<g:sortableColumn property="joinDate" title="入党时间" />
                        
                   	        <g:sortableColumn property="post" title="党内职务" />
							
							<g:sortableColumn property="post" title="  " />
                        
                        </tr>
                    </thead>
                    <tbody>
                    <g:each in="${partMemberInfoInstanceList}" status="i" var="partMemberInfoInstance">
                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
							
							<td>${fieldValue(bean:partMemberInfoInstance, field:'department')}</td>
							
                            <td>${fieldValue(bean:partMemberInfoInstance, field:'name')}</td>
                        
                            <td>${fieldValue(bean:partMemberInfoInstance, field:'sexType')}</td>
                        
                            <td>${fieldValue(bean:partMemberInfoInstance, field:'nation')}</td>

                            <td><g:formatDate date="${partMemberInfoInstance.birthday}" format="yyyy-MM-dd"/></td>
                        
                            <td>${fieldValue(bean:partMemberInfoInstance, field:'eduBackground')}</td>
							
							<td><g:formatDate date="${partMemberInfoInstance.workDate}" format="yyyy-MM-dd"/></td>
							
							<td><g:formatDate date="${partMemberInfoInstance.joinDate}" format="yyyy-MM-dd"/></td>
                        
                            <td>${fieldValue(bean:partMemberInfoInstance, field:'post')}</td>

			    <td>
				<span class="actionButton">
					<g:link action="show" id="${partMemberInfoInstance.id}">
						查看相信信息
					</g:link>
				</span>
			    </td>
			
                        
                        </tr>
                    </g:each>
                    </tbody>
                </table>
            </div>
            <div class="paginateButtons">
		党员总数：<span>${partMemberInfoInstanceTotal}</span>人
	    </div>
        </div>
    </body>
</html>
